.TH "Config" 3 "9 Jun 2009" "QMediaLinker" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Config \- 
.SH SYNOPSIS
.br
.PP
\fC#include <cfgparser.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBConfig\fP (QString filepath=QString('.qmlrc'))"
.br
.ti -1c
.RI "QString \fBget\fP (const QString &key, const QString *defval=NULL) const "
.br
.in -1c
.SS "Private Attributes"

.in +1c
.ti -1c
.RI "QString \fBstr\fP"
.br
.ti -1c
.RI "\fBConfigMap\fP \fBm_pairs\fP"
.br
.in -1c
.SS "Classes"

.in +1c
.ti -1c
.RI "struct \fBConfigError\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class gathers all the informations related to the user configuration of the application 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "Config::Config (QString filepath = \fCQString('.qmlrc')\fP)"
.PP
Constructor of the \fBConfig\fP class. It reads the config file and store each pair in a ConfigMap structure. 
.PP
\fBParameters:\fP
.RS 4
\fIfilepath\fP path to the configuration file. 
.RE
.PP

.PP
References m_pairs, and str.
.SH "Member Function Documentation"
.PP 
.SS "QString Config::get (const QString & key, const QString * defval = \fCNULL\fP) const"
.PP
Public function to access to the pairs stored in the previously fulfilled ConfigMap structure. 
.PP
\fBParameters:\fP
.RS 4
\fIkey\fP The configuration keyword associated to the wanted value. 
.br
\fIdefval\fP The default value assiocated to the key. 
.RE
.PP
\fBReturns:\fP
.RS 4
The found value corresponding to the key. 
.RE
.PP

.PP
References m_pairs.
.PP
Referenced by MainWindow::MainWindow().
.SH "Member Data Documentation"
.PP 
.SS "QString \fBConfig::str\fP\fC [private]\fP"
.PP
Referenced by Config().
.SS "\fBConfigMap\fP \fBConfig::m_pairs\fP\fC [private]\fP"
.PP
Referenced by Config(), and get().

.SH "Author"
.PP 
Generated automatically by Doxygen for QMediaLinker from the source code.
